|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ant.core.AntCorePreferences
Represents the Ant Core plug-in's preferences providing utilities for extracting, changing and updating the underlying preferences.
Constructor Summary | |
protected |
AntCorePreferences(List defaultTasks,
List defaultExtraClasspath,
List defaultTypes,
boolean headless)
|
protected |
AntCorePreferences(List defaultTasks,
List defaultExtraClasspath,
List defaultTypes,
List defaultProperties,
boolean headless)
|
Method Summary | |
protected void |
addPluginClassLoader(ClassLoader loader)
|
protected void |
computeDefaultExtraClasspathEntries(List entries)
|
protected List |
computeDefaultTasks(List tasks)
|
protected List |
computeDefaultTypes(List types)
|
protected Property[] |
extractProperties(Preferences prefs,
String[] properties)
|
protected Task[] |
extractTasks(Preferences prefs,
String[] tasks)
|
protected Type[] |
extractTypes(Preferences prefs,
String[] types)
|
IAntClasspathEntry[] |
getAdditionalClasspathEntries()
Returns the set of classpath entries that the user has added to the Ant runtime classpath. |
String |
getAntHome()
Returns the string that defines the Ant home set by the user or the location of the Eclipse Ant plugin if Ant home has not been specifically set by the user. |
IAntClasspathEntry[] |
getAntHomeClasspathEntries()
Returns the set of classpath entries that compose the libraries added to the Ant runtime classpath from the Ant home location. |
URL[] |
getAntURLs()
Deprecated. use getAntHomeClasspathEntries and getToolsJarEntry |
protected String[] |
getArrayFromString(String list)
|
IAntClasspathEntry[] |
getClasspathEntries()
Returns the entire set of classpath entires that define the Ant runtime classpath. |
Property[] |
getCustomProperties()
Returns the custom user properties specified for Ant builds. |
String[] |
getCustomPropertyFiles()
Returns the custom property files specified for Ant builds. |
Task[] |
getCustomTasks()
Returns the user defined custom tasks |
Type[] |
getCustomTypes()
Returns the user defined custom types |
URL[] |
getCustomURLs()
Deprecated. |
String |
getDefaultAntHome()
Returns the absolute path of the default ant.home to use for the build. |
IAntClasspathEntry[] |
getDefaultAntHomeEntries()
Returns the array of classpath entires that is the default set of entires defining the Ant classpath. |
URL[] |
getDefaultAntURLs()
Deprecated. |
List |
getDefaultProperties()
Returns the default properties defined via the properties extension point |
List |
getDefaultTasks()
Returns the default tasks defined via the task extension point |
List |
getDefaultTypes()
Returns the default types defined via the type extension point |
URL[] |
getExtraClasspathURLs()
Returns the list of urls added to the classpath by the extra classpath entries extension point. |
protected ClassLoader[] |
getPluginClassLoaders()
|
List |
getProperties()
Returns the default and custom properties. |
URL |
getRemoteAntURL()
Returns the URL for the remote JAR to added to the classpath for a remote Ant build |
URL[] |
getRemoteAntURLs()
Returns the list of URLs to added to the classpath for a remote Ant build |
List |
getTasks()
Returns the default and custom tasks. |
IAntClasspathEntry |
getToolsJarEntry()
Returns the IAntClasspathEntry for the tools.jar associated with the "java.home" location. |
IAntClasspathEntry |
getToolsJarEntry(IPath javaHomePath)
Returns the IAntClasspathEntry for the tools.jar associated with the path supplied May return null if no tools.jar is found (e.g. |
URL |
getToolsJarURL()
Deprecated. |
List |
getTypes()
Returns the default and custom types. |
URL[] |
getURLs()
Returns the entire set of URLs that define the Ant runtime classpath. |
void |
propertyChange(Preferences.PropertyChangeEvent event)
When a preference changes, update the in-memory cache of the preference. |
void |
setAdditionalClasspathEntries(IAntClasspathEntry[] entries)
Sets the set of classpath entries that the user has added to the Ant runtime classpath. |
void |
setAntHome(String antHome)
Sets the string that defines the Ant home set by the user. |
void |
setAntHomeClasspathEntries(IAntClasspathEntry[] entries)
Sets the set of classpath entries that compose the libraries added to the Ant runtime classpath from the Ant home location. |
void |
setAntURLs(URL[] urls)
Deprecated. use setAntHomeEntires(IAntClasspathEntry[]) |
void |
setCustomProperties(Property[] properties)
Sets the custom user properties specified for Ant builds. |
void |
setCustomPropertyFiles(String[] paths)
Sets the custom property files specified for Ant builds. |
void |
setCustomTasks(Task[] tasks)
Sets the user defined custom tasks. |
void |
setCustomTypes(Type[] types)
Sets the user defined custom types. |
void |
setCustomURLs(URL[] urls)
Deprecated. use setAdditionalEntries(IAntClasspathEntry)[] |
protected void |
updateAdditionalEntries(Preferences prefs)
|
protected void |
updateAntHomeEntries(Preferences prefs)
|
void |
updatePluginPreferences()
Updates the underlying plugin preferences to the current state. |
protected void |
updateProperties(Preferences prefs)
|
protected void |
updatePropertyFiles(Preferences prefs)
|
protected void |
updateTasks(Preferences prefs)
|
protected void |
updateTypes(Preferences prefs)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected AntCorePreferences(List defaultTasks, List defaultExtraClasspath, List defaultTypes, boolean headless)
protected AntCorePreferences(List defaultTasks, List defaultExtraClasspath, List defaultTypes, List defaultProperties, boolean headless)
Method Detail |
public void propertyChange(Preferences.PropertyChangeEvent event)
propertyChange
in interface Preferences.IPropertyChangeListener
event
- The property change event that has occurred.Preferences.IPropertyChangeListener.propertyChange(org.eclipse.core.runtime.Preferences.PropertyChangeEvent)
public String getDefaultAntHome()
protected Task[] extractTasks(Preferences prefs, String[] tasks)
protected Type[] extractTypes(Preferences prefs, String[] types)
protected Property[] extractProperties(Preferences prefs, String[] properties)
public URL[] getDefaultAntURLs()
public IAntClasspathEntry[] getDefaultAntHomeEntries()
public URL[] getAntURLs()
protected List computeDefaultTasks(List tasks)
protected List computeDefaultTypes(List types)
protected void computeDefaultExtraClasspathEntries(List entries)
public IAntClasspathEntry getToolsJarEntry(IPath javaHomePath)
null
if no tools.jar is found (e.g. the path
points to a JRE install).
javaHomePath
- path for Java home
null
public URL getToolsJarURL()
null
if no tools.jar is found (e.g. "java.home"
points to a JRE install).
null
public IAntClasspathEntry getToolsJarEntry()
null
if no tools.jar is found (e.g. "java.home"
points to a JRE install).
null
protected void addPluginClassLoader(ClassLoader loader)
public URL[] getExtraClasspathURLs()
public URL[] getURLs()
public IAntClasspathEntry[] getClasspathEntries()
protected ClassLoader[] getPluginClassLoaders()
public List getTasks()
public Task[] getCustomTasks()
public Type[] getCustomTypes()
public Property[] getCustomProperties()
public List getProperties()
public String[] getCustomPropertyFiles()
public URL[] getCustomURLs()
public void setCustomTasks(Task[] tasks)
tasks
- public void setCustomTypes(Type[] types)
types
- The custom typespublic void setCustomURLs(URL[] urls)
urls
- the urls defining the Ant classpathpublic void setAntURLs(URL[] urls)
urls
- the urls defining the Ant classpathpublic void setCustomPropertyFiles(String[] paths)
paths
- the absolute paths defining the property files to use.public void setCustomProperties(Property[] properties)
properties
- the properties defining the Ant propertiespublic List getTypes()
public List getDefaultTypes()
public List getDefaultTasks()
public List getDefaultProperties()
protected String[] getArrayFromString(String list)
public void updatePluginPreferences()
protected void updateTasks(Preferences prefs)
protected void updateTypes(Preferences prefs)
protected void updateProperties(Preferences prefs)
protected void updateAdditionalEntries(Preferences prefs)
protected void updateAntHomeEntries(Preferences prefs)
protected void updatePropertyFiles(Preferences prefs)
public void setAntHome(String antHome)
null
.
antHome
- the fully qualified path to Ant homepublic String getAntHome()
null
public IAntClasspathEntry[] getAntHomeClasspathEntries()
public IAntClasspathEntry[] getAdditionalClasspathEntries()
public void setAntHomeClasspathEntries(IAntClasspathEntry[] entries)
entries
- the set of ant home classpath entriespublic void setAdditionalClasspathEntries(IAntClasspathEntry[] entries)
entries
- the set of user classpath entriespublic URL getRemoteAntURL()
public URL[] getRemoteAntURLs()
|
Eclipse Platform Pre-release 3.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |